package com.vieewer.btdemo.utils;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class BitmapUtils {


    public Bitmap getsdCardBitmap () {

        //bitmap = BitmapFactory.decodeResource(context.getResources(),R.mipmap.test_ocr_txt);

        String MEDIA_DIR = "/storage/emulated/0/DCIM/Camera/test.jpg";

        FileInputStream fis = null;
        try {
            fis =  new FileInputStream(MEDIA_DIR);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
        return BitmapFactory.decodeStream(fis);

    }




}
